/* test_window.cc
* This file is part of ncursesxx library
* Copyright (c) 2003,2004 by Stanislav Ievlev
*
* This file is covered by the GNU Library General Public License,
* which should be included with libncursesxx as the file COPYING.
*/
#include <unistd.h>

#include <ncurses/application.hh>
#include <ncurses/window.hh>
#include <ncurses/pen.hh>

int
main()
{
	ncurses::application	app;
	ncurses::window	win;
	ncurses::pen	pen(win);

	win.resize(30, 10);
	pen.frame();
	pen.move(1, 1);
	pen.write("test string");

	::wrefresh(::stdscr); //made first screen refresh

	::wrefresh(::stdscr); //made first screen refresh
	pen.commit();
	::doupdate();
	
	::wgetch(stdscr);
}
